<ion-view title="create one">

    <ion-content class="has-header">
	<!-- 侧边栏按钮 -->
	<ion-nav-buttons side="left">
		<button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
	</ion-nav-buttons>

	<ion-nav-buttons side="right">
		<button class="button button-clear" ng-click="save()">
			 SAVE 
		</button>
	</ion-nav-buttons>


        <form ng-submit="save()" role="form">
        	 <div class="list" >
        		<label class="item item-input">
        			<input type="text" ng-model="data.title" placeholder="标题" autofocus="autofocus" >
        		</label>
        		<label class="item item-input">
        			<textarea ng-model="data.content" cols="30" rows="10"	placeholder="内容" ></textarea>
        		</label>
                <div class="padding">
                    <button type="submit" class="button button-block button-positive">Submit</button>
                </div>
        	</div>
        </form>

        <div class="card alert" ng-if="rstatus" ng-class="{0:'alert-error',1:'alert-success'}[rstatus.status]">
        	<div class="item item-text-wrap">
        		{{rstatus.msg}}
        	</div>
        </div>
	</ion-content>

</ion-view>
